NAME:=DPSM
PROJECT:=dpsm_top

all:
	cp ../fusion/FUSION_TOP.ngc ./FUSION_TOP.ngc
	cp ../system/system_top.ngc ./system.ngc
	planAhead -mode tcl -source tcl/run.tcl
	bitgen "dpsm_top.runs/impl_1/dpsm_top_routed.ncd" "dpsm_top.bit" "dpsm_top.runs/impl_1/dpsm_top.pcf" -w -intstyle pa
	data2mem -bm ../../../fpga/hw/system/implementation/system_stub -p xc6slx25ftg256-2 -bt ./dpsm_top.bit  -bd ../../../fpga/hw/system/bootloops/microblaze_0.elf tag microblaze_0  -o b ./download.bit

clean:
	rm -rf ${PROJECT}.xpr
	rm -rf ${PROJECT}.ppr
	rm -rf ${PROJECT}.data
	rm -rf planAhead*
